<?php
	class Head{
		private $title="";
		private $code="";
		
		public function __construct(){
			$this->title = "";
			$this->code = "<meta http-equiv='X-UA-Compatible' content='IE=edge'/>
						   <meta name='author' content='Nuno Pombo'/>
						   <meta http-equiv='Content-Type' content='text/html; charset=Windows-1252'/>
					       <link href='images/favicon.png' rel='shortcut icon'/>";
		}
		
		public function addLayout($filePath){
			$this->code = $this->code . "<link rel='stylesheet' type='text/css' href='". $filePath . "'/>";
		}
		
		public function addTitle($title){
			$this->code = $this->code . "<title>" . $title . "</title>"; 
		}
		
		public function printHead(){
			$this->code = "<head>" . $this->code . "</head>";
			echo $this->code;
		}
	}
?>